package com.business.system.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.business.system.pojo.User;
import com.utility.Page;

public interface UserMapper {
	public int insert(User user) throws RuntimeException;

	public int update(User user) throws RuntimeException;

	public int delete(int id) throws RuntimeException;

	public List<User> selectAll() throws RuntimeException;

	public int countAll() throws RuntimeException;

	public User findById(int id) throws RuntimeException;

	public User findByUserName(@Param(value = "username") String username)
			throws RuntimeException;

	public User findUser(Map<String, String> map) throws RuntimeException;

	public List<User> findUserListPage(Page<User> page) throws RuntimeException;
}
